package educrypt.io;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Output {

	public static void writePlainText(String toWrite, String path) {
		BufferedWriter out = null;
		try {
			out = new BufferedWriter(new FileWriter(path));
			out.write(toWrite);
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				out.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}
